﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace Kinect_Dance.Filter
{
    /// <summary>
    /// Native Methods.
    /// </summary>
    class NativeMethods
    {
        /// <summary>
        /// PInvoke Import of performance counter.
        /// </summary>
        /// <param name="performanceCount">Count of ticks.</param>
        /// <returns>Returns true on success, false otherwise.</returns>
        [DllImport("Kernel32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        internal static extern bool QueryPerformanceCounter(out long performanceCount);

        /// <summary>
        /// PInvoke Import of performance counter.
        /// </summary>
        /// <param name="frequency">Clock frequency in ticks per second.</param>
        /// <returns>Returns true on success, false otherwise.</returns>
        [DllImport("Kernel32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        internal static extern bool QueryPerformanceFrequency(out long frequency);
    }
}
